﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="personal.aspx.cs" Inherits="personal" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>个人首页</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--内容开始-->
    <div class="main">
        <%
            if (minfos != null)
            {
                int i = 1;
                foreach (SAS.Toolkit.MemberInfo memberInfo in minfos)
                {      
        %>
        <div class="nr" style="background: url(<%= memberInfo.Imgbak%>);" id="post-0<%=i %>">
            <div class="maincot">
                <p class="nr1">
                    <img alt="<%= memberInfo.Nickname %>（<%= memberInfo.Name %>）" src="<%=memberInfo.Imglist %>" /></p>
                <div class="nr2">
                    <strong>
                        <%= memberInfo.Nickname%>（<%= memberInfo.Name%>）</strong>
                    <p class="mar_top">
                        <span class="f_999">当前职务：</span><%=memberInfo.Job%></p>
                    <p>
                        <span class="f_999">星光亮度：</span>
                          <%if (memberInfo.Light >= 0 && memberInfo.Light < 2)
                          { %>
                        星光点点
                        <%}
                            else if (memberInfo.Light >= 2 && memberInfo.Light < 5)
                          { %>
                        星光闪闪
                        <%}
                            else if (memberInfo.Light >= 5 && memberInfo.Light < 9)
                          {%>
                        星光灿烂
                        <%}
                          else
                          { %>
                        星光璀璨
                        <%} %>
                        </p>
                    <p>
                        <span class="f_999">自我描述：</span></p>
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <%if (memberInfo.Selfdesc.Length > 130)
                          {%>
                        <%=memberInfo.Selfdesc.Substring(0, 130)%>...
                        <%}
                          else
                          { %>
                        <%=memberInfo.Selfdesc%>
                        <%} %>
                        [<a href="<%=memberInfo.Name %>.html" class="zt3">更多...</a>]</p>
                    <ul class="nr2an prev_next">
                        <%if (i > 1)
                          { %>
                        <li><a href="javascript:scroller('post-0<%=i-1 %>', 600);">prev</a></li>
                        <%}
                          if (i < minfos.Length)
                          {%>
                        <li class="next"><a href="javascript:scroller('post-0<%=i+1 %>', 600);">next</a></li>
                        <%} %>
                    </ul>
                </div>
            </div>
        </div>
        <%i++;
                }
            } %>
    </div>
    <!--内容结束-->
</asp:Content>
